﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WinForm1
{
    class Calculate
    {
        private double m_dA = 0.0;
        private double m_dB = 0.0;
        //set get method
        public double dA
        {
             get { return m_dA; }
             set { m_dA = value; }
        }
        public double dB
        {
             get { return m_dB; }
             set { m_dB = value; }
        }
        public double plus()
        {
            return (m_dA + m_dB);
        }
        public double minus()
        {
            return (m_dA - m_dB);
        }
        public double div()
        {
            return (m_dA / m_dB);
        }
        public double mul()
        {
            return (m_dA * m_dB);
        }
    }
}
